<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>TZ-追梦</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
        }
        ul{
            width: 350px;
            height: 100px;
            margin: 100px auto;
            box-shadow: 0 0 5px #000;
            display: -webkit-flex;
            display: flex; /* flex 比 box 更加的灵活*/
            /*flex-flow: row-reverse;*/
            /*flex-flow: nowrap;*/
            /*flex-flow: row-reverse wrap;*/
        }
        li{
            width: 80px;
            height: 100%;

        }

        ul li:nth-child(1){background: green}
        ul li:nth-child(2){background: gray}
        ul li:nth-child(3){background: purple;}
        ul li:nth-child(4){background: gold}
        ul li:nth-child(5){background: pink}
    </style>
</head>
<body>
<ul>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
</ul>
</body>
</html>